package com.quanyan.runningriding.entity.vo.run;

import com.quanyan.common.validation.base.Insert;
import com.quanyan.common.validation.base.Update;

import javax.validation.constraints.NotNull;

/**
 * MusicVo
 *
 * @author Tu Chun
 * @date 2016/9/14
 */
public class MusicVo {
    /**
     * 主键id
     */
    @NotNull(groups = Update.class)
    private Integer id;
    /**
     * 歌曲名
     */
    private String name;
    /**
     * 歌曲作者
     */
    private String author;
    /**
     * 歌曲类型 1-慢跑FM 2-中速FM 3-快跑FM 4-自由FM
     */
    private Byte type;
    /**
     * 歌曲大小 单位KB
     */
    private Double size;
    /**
     * 歌曲时间 单位秒
     */
    private Long time;
    /**
     * 歌曲url地址
     */
    @NotNull(groups = Insert.class)
    private String addressUrl;
    /**
     * 详情描述
     */
    private String describe;
    /**
     * 音乐BPM
     */
    private Integer musicBPM;
    /**
     * 平均配速
     */
   private Long avgPace;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getAvgPace() {
        return avgPace;
    }

    public void setAvgPace(Long avgPace) {
        this.avgPace = avgPace;
    }

    public Integer getMusicBPM() {
        return musicBPM;
    }

    public void setMusicBPM(Integer musicBPM) {
        this.musicBPM = musicBPM;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public Double getSize() {
        return size;
    }

    public void setSize(Double size) {
        this.size = size;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public String getAddressUrl() {
        return addressUrl;
    }

    public void setAddressUrl(String addressUrl) {
        this.addressUrl = addressUrl;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }
}
